package ch8

import org.gradle.api.*


class CustomPlugin implements Plugin<Project> {
	void apply(Project project) {
	
		def extension = project.extensions.create("customExt",CustomPluginExtension)
		
		project.task('task1') << {
			println "Sample task1 in custom plugin"
			println "location is "+project.customExt.location
			//....
		}
		project.task('task2') << {
			println "Sample task2 in custom plugin"
			//...
		}		
	}
}
